<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>

  <head>
    <base href="<%=basePath%>">
    
    <title></title>

	<script type="text/javascript"
		src="<%=basePath%>/jquery/jquery-1.8.2.min.js"></script>
	<script type="text/javascript"
		src="<%=basePath%>/jquery/jquery.easyui.min.js"></script>
</head>
  <script type="text/javascript">
  	$(function(){
  		addUserBtn();
  	})
  	
  	function addUserBtn(){
  		$.ajax({
  			type : "POST",
			url : "user/addUser.action",
			async: false, 
			data : {
				"shopId":31, 
			},
			dataType : "json",
			success : function(data) {
				alert("111111");
			}
  		})
  	}
  </script>
  <body>
  	 <input type="button" value="请求后台" onclick="addUserBtn()">
  </body>
</html>
